package ym.ecrm.web.action.systemManagement;

import org.springframework.beans.factory.annotation.Autowired;

import com.opensymphony.xwork2.ModelDriven;

import ym.ecrm.core.dto.systemManagement.ResourceDTO;
import ym.ecrm.core.service.systemManagement.ISystemService;
import ym.ecrm.web.action.base.BaseAction;

/**
 * 
 * @author Princess
 * 
 */
public class ModifyResourceAction extends BaseAction implements ModelDriven<ResourceDTO>{

	private ResourceDTO resourceDTO = new ResourceDTO();
	
	@Autowired
	private ISystemService systemService;

	public String execute() {
		systemService.modifyResource(resourceDTO);
		return proccess();
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public String getSuccess() {
		return success;
	}

	@Override
	public ResourceDTO getModel() {
		return resourceDTO;
	}

}
